package enttpl

import (
	"embed"
	"entgo.io/ent/entc/gen"
)

//go:embed template
var EntTemplate embed.FS

func NewTemplate(patterns ...string) *gen.Template {
	return gen.MustParse(gen.NewTemplate("template").
		Funcs(gen.Funcs).
		ParseFS(EntTemplate, patterns...))
}
